home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
misc
/
vpan100.zip
/
VPUTIL.H
< prev
Wrap
C/C++ Source or Header
|
1995-01-18
|
996b
|
39 lines
//
// UTILITY BOXES FOR VirtualPanels APPLICATIONS
//
// VPUTIL.H: DisplayMessage, DisplayErrorMessage,
// Confirm, Enter, bpHelp
//
// | Written by O.Rasizade
// declaration | 1993
// |
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#ifndef __VPUTIL_H
#define __VPUTIL_H
#include <vpbase.h>
#include <vpinbox.h>
#define YES 1
#define NO 0
void DisplayMessage(char *title,char *mess);
void DisplayErrorMessage(char *mess);
int Confirm(char *mess, int dflt);
void far bpHelp(void);
//--------------- ENTER VALUE -----------
template <class T>
void Enter( char *title, char *prompt,char *format,T *var,int len = 12)
{
Inbox ibEnter(maxx>>2,maxy>>2,POPUP, title,strlen(prompt)+len/*size of box*/);
ibEnter.Paint();
do
{
ibEnter.cls();
ibEnter.Put( prompt, 1);
}while ( !( ibEnter.Scanf( format, var) ) );
ibEnter.Remove();
}//------ Enter
#endif //__VPUTIL_H